package work20241207_chap8.l;

/**
 * @author zdl
 * @date 2024/12/7
 */
public abstract class NameRole implements Role {
    private String name;
    private int age;

    public NameRole(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public NameRole() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
